package com.mcf.xiaolinju.controller;

import com.mcf.xiaolinju.vo.UserReturn;
import com.mcf.xiaolinju.service.impl.UserReturnImpl;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@CrossOrigin
@RestController
@RequestMapping("/xiaolinju/userreturn")
public class UserReturnController {
    @Resource
    UserReturnImpl userReturnImpl;
    @RequestMapping("/getmessages")
    public UserReturn getmessages(int id){
        return userReturnImpl.getmessages(id);
    }
}
